# 输入某年某月某日，判断这一天是这一年的第几天

import datetime

year, month, day = map(int, input('请输入-分割的年月日：').split('-'))

yuan_dan = datetime.datetime(year, 1, 1)
now = datetime.datetime(year, month, day)

print((now - yuan_dan).days + 1)
